import App from './App'
import store from './store'

// #ifndef VUE3
import Vue from 'vue'
import {
	BASE_URL
} from '@/utils/config.js'

import {
	toast,
	toUrl,
	toReUrl,
	toReLUrl,
	isNull,
	myTime,
	wxLogin,
	theme,
	setClipboardData
} from '@/utils/tools.js'

Vue.prototype.$store = store
Vue.prototype.$BASE_URL = BASE_URL
Vue.prototype.$toast = toast
Vue.prototype.$toUrl = toUrl
Vue.prototype.$toReUrl = toReUrl
Vue.prototype.$toReLUrl = toReLUrl
Vue.prototype.$isNull = isNull
Vue.prototype.$myTime = myTime
Vue.prototype.$wxLogin = wxLogin
Vue.prototype.$theme = theme
Vue.prototype.$copy = setClipboardData

Vue.config.productionTip = false
import uView from "uview-ui";
Vue.use(uView);
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
